﻿<Refract:View
    x:Class="Refract.Demo.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
    xmlns:com="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation"
    xmlns:isc="clr-namespace:Refract.Demo.Infrastructure.Commands;assembly=Refract.Demo.Infrastructure"
    xmlns:is="clr-namespace:Refract.Demo.Infrastructure;assembly=Refract.Demo.Infrastructure"
    xmlns:Refract="clr-namespace:Refract.Views;assembly=Refract"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

    <StackPanel x:Name="LayoutRoot" >
        <is:Menu Pages="{Binding Pages}"></is:Menu>
        <Button Content="Test" com:Click.Command="{Binding TestCommand}" Width="200" Height="30"/>
        <Border BorderBrush="Black" BorderThickness="2">
            <ItemsControl cal:RegionManager.RegionName="MainRegion"/>        
        </Border>
    </StackPanel>

</Refract:View>